package com.cube.saintaugustin.common;

import com.cube.saintaugustin.R;
import android.app.Dialog;
import android.app.DialogFragment;
import android.app.ProgressDialog;
import android.os.Bundle;

public class ProgressDialogFragment extends DialogFragment {

    @Override
    public Dialog onCreateDialog(Bundle savedInstanceState) {
        ProgressDialog dialog = new ProgressDialog(getActivity());
        dialog.setMessage(getString(R.string.progress_text));
        dialog.setIndeterminate(true);
        dialog.setCancelable(true);
        return dialog;
    }

}
